<?php
namespace Upload\Form;

use Zend\InputFilter;
use Zend\Form\Element;
use Zend\Form\Form;

class UploadForm extends Form
{
public function __construct($name = null, $options = array())
    {
        parent::__construct($name, $options);

        $this->setAttribute('method', 'post');
        $this->setAttribute('enctype','multipart/form-data');

        $this->add(array(
                'name' => 'image-file',
                'attributes' => array(
                        'type'  => 'file',
                        //'multiple' => true
                ),
                'options' => array(
                        'label' => 'Chọn files upload: ',
                ),
        ));


        $this->add(array(
                'name' => 'submit',
                'attributes' => array(
                        'type'  => 'submit',
                        'value' => 'Go'
                ),
        ));
    }
}